﻿@{
    ViewBag.Title = "Info";
    Layout = "~/Views/Shared/_Index.cshtml";
}
<script>
    $(function () {
        $('.wrapper').height($(window).height() - 11);
    })
    function btn_add() {
        var newPwd = $('#newPwd').val();
        var confirmNewPwd = $('#confirmNewPwd').val();
        if ('' == newPwd || null == newPwd ) {
            bootbox.alert('新密码为空，请重新输入！');
            return;
        }
        if ('' == confirmNewPwd || null == confirmNewPwd) {
            bootbox.alert('确认新密码为空，请重新输入！');
            return;
        }
        if (newPwd != confirmNewPwd) {
            bootbox.alert('新密码前后输入不一致,请重新输入！');
            return;
        }
        $.submitForm({
            url: "/SystemManage/User/chgPwd",
            param: { 'newPwd': newPwd },
            success: function () {
                $.loading(false)
            }
        })
    }
</script>
<form id="form1">
    <div class="wrapper">
        <div class="tab-content" style="padding-top: 5px;">
            <div class="tab-pane active" style="padding: 15px;">
                <ul class="pop-list">
                    <li class="line">
                        <h5><span>修改密码</span></h5>
                    </li>
                    <li>
                        <label>新密码</label>
                        <input id="newPwd" name="newPwd" type="password" class="form-control" />
                    </li>
                    <li>
                        <label>确认新密码</label>
                        <input id="confirmNewPwd" name="confirmNewPwd" type="password" class="form-control" />
                    </li>
                    <li>
                        <div style="padding-left: 115px;">
                            <a class="btn btn-primary" onclick="btn_add()"><i class="fa fa-save" style="margin-right:5px;"></i>确认修改</a>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</form>
